package com.woorigil.social.domain.flower;

import java.util.List;

import org.springframework.stereotype.Repository;
import com.woorigil.social.domain.SqlMapDaoSupport;

@Repository
public class FlowerDao extends SqlMapDaoSupport<Flower, Integer> {
	public static final String NAMESPACE = "Flower";

	@Override
	public String getNamespace() {
		return NAMESPACE;
	}

	@SuppressWarnings("unchecked")
	public List<Flower> search(FlowerCondition condition) {
		return getSqlMapClientTemplate().queryForList(getStatementName(NAMESPACE, "search"), condition);
	}
}